PdhRemoveCounter (VB)
The Visual
Basic PdhRemoveCounter
PdhRemoveCounter(
ByVal CounterHandle as Long) |
|
as Long |
|
Parameters
CounterHandle
The ID of the
counter returned by the PdhAddCounter
Return Values
If the
function succeeds, it returns a Long integer equal to ERROR_SUCCESS and
the counter entry is deleted from the query.
If the
function fails, the return value is a PDH error status defined in PDHDEFS.TXT.
The following is a possible error value:
Value |
Meaning |
PDH_INVALID_HANDLE
|
The counter
handle is not valid. |